#pragma once
#include "surface.h"
#include "curve.h"

class SweptSurface : public Surface
{
public:
	SweptSurface(float height,int stacks);

	SweptSurface(const char* texturePath,float height,int stacks);

	virtual ~SweptSurface();

	void Update(float dt,const Curve& curve);

private:
	void loadIndexArray();
	void loadVertexArray();
	void loadTextureCoordArray();
	void loadNormalArray();

private:
	ListPoints3D m_curvePoints;

	float m_height;
};

